<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body>
<?
/*
	$files = new Files();
	$common = $files->open(PHP."text/common.txt");
	$lines = explode(";##",$common);
	foreach($lines as $k => $line){
		$data = array();
		$col = explode(";#", $line);

		$data['name'] = $col[0];
		$data['target'] = $col[1];
		$data['gid'] = $col[2];
		$data['year'] = $col[3];

		$db->insert("common", $data);
	}


	$files = new Files();
	$flag = $files->open(PHP."text/flag.txt");
	$lines = explode(";##",$flag);
	foreach($lines as $k => $line){
		$data = array();
		$col = explode(";#", $line);

		$data['name'] = $col[0];
		$data['principle'] = $col[1];
		$data['related'] = $col[2];
		$data['sub'] = end(explode(".",$col[3]));
		$data['type'] = $col[4];
		$data['p1'] = $col[8];
		$data['p2'] = $col[9];
		$data['p3'] = $col[10];
		$data['p4'] = $col[11];
		$data['p5'] = $col[12];
		$data['target'] = $col[20];
		$data['gid'] = $col[21];
		$data['year'] = $col[25];

		$db->insert("assessment", $data);
	}


	$files = new Files();
	$flag = $files->open(PHP."text/standard.txt");
	$lines = explode(";##",$flag);
	foreach($lines as $k => $line){
		$data = array();
		$col = explode(";#", $line);

		$data['name'] = $col[0];
		$data['aid'] = $col[2];
		$data['result'] = $col[3];

		$db->insert("assessment_standard", $data);
	}
*/
/*
	$common = $dsfm_common->get_all("common", "year=2555");
	foreach($common as $k => $v){
		unset($v['id']);
		$v['year'] = 2556;
		$db->insert("common", $v);
		$v['year'] = 2557;
		$db->insert("common", $v);
	}

	$assessment = $dsfm_common->get_all("assessment", "year=2555");
	foreach($assessment as $k => $v){
		unset($v['id']);
		$v['year'] = 2556;
		$db->insert("assessment", $v);
		$v['year'] = 2557;
		$db->insert("assessment", $v);
	}
*/
?>
</body>
</html>